package com.bbcare.img.plat.entity;

import java.io.Serializable;

import javax.persistence.Entity;

import com.bbcare.comm.DateUtil;

/**
 * @name: 内容模板版本实体类
 * @author: DemonLee
 * @createTime: 2017.11.3
 * @description: 内容模板版本等
 * @modify:
 * 
 */

@Entity
public class ContentTemplVersion implements Serializable {
    private static final long serialVersionUID = 1L;
    // 任务内容模板版本id
    private String id;
    // 任务内容模板id
    private String templId;
    // 版本号
    private int templVersion;
    // 模板内容json(含默认答案)
    private String templData;
    // 创建时间
    private String createTime;
    // 更新时间
    private String updateTime;
    // 标识问卷内容一样的关联模板id
    private String equalId;

    // 问卷类型
    private String typeCode;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setTemplId(String templId) {
        this.templId = templId;
    }

    public String getTemplId() {
        return templId;
    }

    public void setTemplVersion(int templVersion) {
        this.templVersion = templVersion;
    }

    public int getTemplVersion() {
        return templVersion;
    }

    public void setTemplData(String templData) {
        this.templData = templData;
    }

    public String getTemplData() {
        return templData;
    }

    public void setCreateTime(String createTime) {
        this.createTime = DateUtil.getTimeStampSec(createTime);
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = DateUtil.getTimeStampSec(updateTime);
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public String getEqualId() {
        return equalId;
    }

    public void setEqualId(String equalId) {
        this.equalId = equalId;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

}
